public class Main {
    public static void main(String[] args) {
        HuaWeiFactory hwFactory = new HuaWeiFactory();
        System.out.println(hwFactory.createCar().showInfo());
        System.out.println(hwFactory.createMobile().showInfo());
        System.out.println(hwFactory.createWatch().showInfo());

        XiaoMiFactory XMFactory = new XiaoMiFactory();
        System.out.println(XMFactory.createCar().showInfo());
        System.out.println(XMFactory.createMobile().showInfo());
        System.out.println(XMFactory.createWatch().showInfo());

    }
}